package com.xszx.serviceedu.client;

import com.xszx.commonutils.R;
import com.xszx.serviceedu.client.impl.UcenterClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author: 白熊
 * @Date: 2024/7/25 16:44
 */
@Component
@FeignClient(fallback = UcenterClientImpl.class,value = "service-ucenter")
public interface UcenterClient {
    @PostMapping("/ucenter/member/getInfoUc/{id}")//通过id获取用户信息
    R getInfo(@PathVariable("id") String id);
}
